﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FiniteStateMachine
{
    [AttributeUsage(AttributeTargets.Method,AllowMultiple=false)]
    public sealed class FsmStateHandlerAttribute:Attribute
    {
        private string _State;
        /// <summary></summary>
        public string State
        {
            get
            {
                return this._State;
            }
        }

        private EStateHandlerType _HandlerType;
        /// <summary></summary>
        public EStateHandlerType HandlerType
        {
            get
            {
                return this._HandlerType;
            }
        }

        public FsmStateHandlerAttribute(string state, EStateHandlerType handlerType)
        {
            this._State = state;
            this._HandlerType = handlerType;
        }
    }
}
